package cn.book.book.vo;

import java.io.Serializable;

/**
 * @author oldliu
 * @since 1.0
 */
public class Page<T> extends AjaxResult implements Serializable {
    private int pageNum=1;
    private int pageSize=10;
    private long total=0;
    private int pages=0;

    public Page(){

    }
    public Page(int code){
        super(null,code,null);
    }

    public Page(int pageNum, int pageSize, long total, int pages,Object o) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.total = total;
        this.pages = pages;
        super.setData(o);
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}
